﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace MediaCenter
{
    class StartAmbi
    {
        public StartAmbi()
        {
        }

        public void runAmbilight(Process p)
        {
            var process = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "\\application.windows32\\ledcontrol.exe";
            ProcessStartInfo psI = new ProcessStartInfo(process);
            p = new Process();
            psI.LoadUserProfile = true;
            psI.UseShellExecute = false;
            psI.RedirectStandardInput = true;
            psI.RedirectStandardOutput = true;
            p.StartInfo = psI;
            p.Start();
        }
    }
}
